package com.jinlia.show.modules.base.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinlia.show.modules.base.model.form.GoodsForm;
import com.jinlia.show.modules.base.model.po.GoodsPO;
import com.jinlia.show.modules.base.model.query.GoodsQuery;
import com.jinlia.show.modules.base.system.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 获取下订单的商品
     *
     * @param goodsRequest
     * @return
     */
    List<GoodsPO> getVOList(GoodsForm goodsRequest);

    Page<GoodsPO> getPagePO(@Param(value = "page") Page<Goods> page,@Param(value = "query") GoodsQuery goodsQuery);

}
